package com.peng.service.impl;

import com.peng.dao.impl.staffDaoImpl;
import com.peng.dao.staffDao;
import com.peng.entity.staff;
import com.peng.service.staffService;

import java.util.List;

/**
 * Created by 欧阳欣鹏 on 2018/8/6.
 */
public class staffServiceImpl implements staffService
{
    @Override
    public List<staff> li() {
        staffDao s=new staffDaoImpl();
        return s.li();
    }

    @Override
    public int delete(int id) {
        staffDao s=new staffDaoImpl();
        return s.delete(id);
    }

    @Override
    public int insert(staff s) {
        staffDao ss=new staffDaoImpl();
        return ss.insert(s);
    }
}
